/**
 * @project readnote
 * @Title BookDAOImpl.java
 * @author huxh
 * @date 2012-2-12
 **/
package com.readnote.user.dao.impl;

import com.cr.backbone.hibenate.AppBaseDAOImpl;
import com.readnote.user.dao.UserInfoDAO;
import com.readnote.user.model.User;
import com.readnote.user.model.UserInfo;

public class UserInfoDAOImpl extends AppBaseDAOImpl<UserInfo> implements UserInfoDAO  {


	/**
	 * 根据userId得到userInfo
	 * @param userId
	 * @return
	 * @author huxh
	 * @date 2012-02-14
	 */
	public UserInfo getUserInfoByUserId(Long userId){
		String hql="FROM UserInfo ui WHERE ui.user.id = ?";
		Object[] values={userId};
		return getByHql(hql,values );
	}
	
}
